package cn.wolfcode.rbac.web.controller;

import org.springframework.stereotype.Controller;
@Controller
public class LoginController {
    //验证用户名和密码是否正确
    /*@Autowired
    private IEmployeeService employeeService;

    @RequestMapping("/login")
    @ResponseBody
    public JsonResult login(String username, String password) {
        JsonResult json = new JsonResult();
        try {
            this.employeeService.login(username, password);
        }catch (Exception e){
            e.printStackTrace();
            json.mark(e.getMessage());
        }
        return json;
    }*/

    /*@RequestMapping("/logout")
    public String logout(HttpSession session){
        session.invalidate();
        return "redirect:/login.html";
    }*/

}
